package com.huiminpay.merchant.service;

import com.huiminpay.common.cache.domain.BusinessException;

public interface SmsService {

    /**
     * 发送验证码
     * @param phone 手机号
     * @return验证key
     */
    String sendSms(String phone) throws BusinessException;

    /**
     * 校验验证码
     * @param verifiyKey 验证key
     * @param verifiyCode  验证码
     */
    void checkVerifyCode (String verifiyKey,String verifiyCode) throws BusinessException;
}
